package edu.gatech.volt2.drdoommgt.gui;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.SpringLayout;
import javax.swing.JLabel;

public class ViewMedicalHistory extends JFrame {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					ViewMedicalHistory frame = new ViewMedicalHistory();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public ViewMedicalHistory() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setTitle("Medical History");
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		SpringLayout sl_contentPane = new SpringLayout();
		contentPane.setLayout(sl_contentPane);

		JPanel panel = new JPanel();
		sl_contentPane.putConstraint(SpringLayout.NORTH, panel, 0, SpringLayout.NORTH, contentPane);
		sl_contentPane.putConstraint(SpringLayout.WEST, panel, 0, SpringLayout.WEST, contentPane);

		//setPreferredSize(450, 300);

		contentPane.add(panel);
		
		JLabel lblNewLabel = new JLabel("Date of Visit:");
		contentPane.add(lblNewLabel);
		
		JLabel lblTreatingDoctor = new JLabel("Treating Doctor:");
		sl_contentPane.putConstraint(SpringLayout.WEST, lblNewLabel, 0, SpringLayout.WEST, lblTreatingDoctor);
		sl_contentPane.putConstraint(SpringLayout.SOUTH, lblNewLabel, -6, SpringLayout.NORTH, lblTreatingDoctor);
		sl_contentPane.putConstraint(SpringLayout.NORTH, lblTreatingDoctor, 40, SpringLayout.NORTH, contentPane);
		sl_contentPane.putConstraint(SpringLayout.WEST, lblTreatingDoctor, 35, SpringLayout.WEST, contentPane);
		contentPane.add(lblTreatingDoctor);
		
		JLabel lblTreatingNurse = new JLabel("Treating Nurse:");
		sl_contentPane.putConstraint(SpringLayout.NORTH, lblTreatingNurse, 14, SpringLayout.SOUTH, lblTreatingDoctor);
		sl_contentPane.putConstraint(SpringLayout.WEST, lblTreatingNurse, 35, SpringLayout.WEST, contentPane);
		contentPane.add(lblTreatingNurse);
		
		JLabel lblComplaint = new JLabel("Complaint:");
		sl_contentPane.putConstraint(SpringLayout.NORTH, lblComplaint, 14, SpringLayout.SOUTH, lblTreatingNurse);
		sl_contentPane.putConstraint(SpringLayout.WEST, lblComplaint, 35, SpringLayout.WEST, contentPane);
		contentPane.add(lblComplaint);
		
		JLabel lblVitalSigns = new JLabel("Vital Signs:");
		sl_contentPane.putConstraint(SpringLayout.NORTH, lblVitalSigns, 14, SpringLayout.SOUTH, lblComplaint);
		sl_contentPane.putConstraint(SpringLayout.WEST, lblVitalSigns, 35, SpringLayout.WEST, contentPane);
		contentPane.add(lblVitalSigns);
		
		JLabel lblDiagnosis = new JLabel("Diagnosis:");
		sl_contentPane.putConstraint(SpringLayout.NORTH, lblDiagnosis, 14, SpringLayout.SOUTH, lblVitalSigns);
		sl_contentPane.putConstraint(SpringLayout.WEST, lblDiagnosis, 35, SpringLayout.WEST, contentPane);
		contentPane.add(lblDiagnosis);
		
		JLabel lblDoctorsOrders = new JLabel("Doctor's Orders:");
		sl_contentPane.putConstraint(SpringLayout.NORTH, lblDoctorsOrders, 14, SpringLayout.SOUTH, lblDiagnosis);
		sl_contentPane.putConstraint(SpringLayout.WEST, lblDoctorsOrders, 35, SpringLayout.WEST, contentPane);
		contentPane.add(lblDoctorsOrders);
		
		JLabel lbldate = new JLabel("[DATE]");
		sl_contentPane.putConstraint(SpringLayout.NORTH, lbldate, 0, SpringLayout.NORTH, lblNewLabel);
		contentPane.add(lbldate);
		
		JLabel lbldoctor = new JLabel("[DOCTOR]");
		sl_contentPane.putConstraint(SpringLayout.WEST, lbldate, -61, SpringLayout.EAST, lbldoctor);
		sl_contentPane.putConstraint(SpringLayout.EAST, lbldate, 0, SpringLayout.EAST, lbldoctor);
		sl_contentPane.putConstraint(SpringLayout.WEST, lbldoctor, 117, SpringLayout.EAST, lblTreatingDoctor);
		sl_contentPane.putConstraint(SpringLayout.NORTH, lbldoctor, 0, SpringLayout.NORTH, lblTreatingDoctor);
		contentPane.add(lbldoctor);
		
		JLabel lblnurse = new JLabel("[NURSE]");
		sl_contentPane.putConstraint(SpringLayout.NORTH, lblnurse, 0, SpringLayout.NORTH, lblTreatingNurse);
		sl_contentPane.putConstraint(SpringLayout.WEST, lblnurse, 123, SpringLayout.EAST, lblTreatingNurse);
		contentPane.add(lblnurse);
		
		JLabel lblcomplaint = new JLabel("[COMPLAINT]");
		sl_contentPane.putConstraint(SpringLayout.WEST, lblcomplaint, 151, SpringLayout.EAST, lblComplaint);
		sl_contentPane.putConstraint(SpringLayout.SOUTH, lblcomplaint, 0, SpringLayout.SOUTH, lblComplaint);
		contentPane.add(lblcomplaint);
		
		JLabel lblvitals = new JLabel("[VITALS]");
		sl_contentPane.putConstraint(SpringLayout.NORTH, lblvitals, 0, SpringLayout.NORTH, lblVitalSigns);
		sl_contentPane.putConstraint(SpringLayout.WEST, lblvitals, 150, SpringLayout.EAST, lblVitalSigns);
		contentPane.add(lblvitals);
		
		JLabel lbldiagnosis = new JLabel("[DIAGNOSIS]");
		sl_contentPane.putConstraint(SpringLayout.WEST, lbldiagnosis, 153, SpringLayout.EAST, lblDiagnosis);
		sl_contentPane.putConstraint(SpringLayout.SOUTH, lbldiagnosis, 0, SpringLayout.SOUTH, lblDiagnosis);
		contentPane.add(lbldiagnosis);
		
		JLabel lbldocOrders = new JLabel("[DOC ORDERS]");
		sl_contentPane.putConstraint(SpringLayout.NORTH, lbldocOrders, 0, SpringLayout.NORTH, lblDoctorsOrders);
		sl_contentPane.putConstraint(SpringLayout.WEST, lbldocOrders, 117, SpringLayout.EAST, lblDoctorsOrders);
		contentPane.add(lbldocOrders);
	
	}
}
